import request from '@/api/request'
//同意退货
function agreeApply(id,data) {
    return request({
      url:`/lejuAdmin/orderReturn/agreeApply/${id}`,
      method: 'POST',
      data
    })
  }

//查看退单列表
function findReturnApply(start,limit,data) {
    return request({
      url:`/lejuAdmin/orderReturn/findReturnApply/${start}/${limit}`,
      method: 'POST',
      data
    })
  }

//收到退货
function receiveProduct(id,data) {
    return request({
      url:`/lejuAdmin/orderReturn/receiveProduct/${id}`,
      method: 'POST',
      data
    })
  }

//拒绝退货
function rejectApply(id,data) {
    return request({
      url:`/lejuAdmin/orderReturn/rejectApply/${id}`,
      method: 'POST',
      data
    })
  }

//退单明细
function getorderReturn(id,data) {
    return request({
      url:`/lejuAdmin/orderReturn/${id}`,
      method: 'GET',
      data
    })
  }


export default{
    agreeApply,findReturnApply,receiveProduct,rejectApply,getorderReturn
}
